/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package agent;

import aima.core.agent.Percept;
import java.util.HashMap;


/**
 *
 * @author JoséJoão
 */
public class Agent implements aima.core.agent.Agent{
    private boolean isAlive=false;
    private HashMap<State,Action> rules;
    
    Agent(){
        rules=new HashMap<>();
        State state=new State();
        state.setLocation("A");
        state.setIsDirty(false);
        
        Action action=new Action();
        action.setAction("Right");
        
        rules.put(state, action);
        
        state.setLocation("A");
        state.setIsDirty(false);
        action.setAction("Right");
        
    }
    @Override
    public Action execute(Percept prcpt) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public boolean isAlive() {
        return isAlive;
    }

    @Override
    public void setAlive(boolean bln) {
        if (!isAlive)
            isAlive=true;
        else
            isAlive=false;
    }
    
}
